package bf.program.command.ext;

import org.objectweb.asm.MethodVisitor;

import bf.program.Command;
import bf.program.State;

public class CellClear extends Command {

	public CellClear() {
		super();
	}

	@Override
	public void execute(State state) {
		state.CLR();
	}

	@Override
	public void genCode(MethodVisitor mv) {
		mv.visitVarInsn(ALOAD, 0);
		mv.visitMethodInsn(INVOKEVIRTUAL, "bf/program/State", "CLR", "()V");
	}

}
